home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 7 / PC World Interactive 7.iso / program / cprog.EXE / POINTER.C < prev    next >
Text File  |  1996-07-05  |  430b  |  15 lines

  1. main()                      /* Pointer kullanimi ornegi */
  2. {
  3. int index,*pt1,*pt2;
  4.  
  5.    index = 39;                      /* herhangi bir deger  */
  6.    pt1 = &index;                   /* 'index' in adresi    */
  7.    pt2 = pt1;
  8.  
  9.    printf("Deger simdi %d %d %d dir.\n",index,*pt1,*pt2);
  10.  
  11.    *pt1 = 13;           /* 'index' in degerine degisiklik yapalim */
  12.  
  13.    printf("Degistikten sonra ise %d %d %d\n",index,*pt1,*pt2);
  14. }
  15.